package com.lyc.day1031.demo1;

/**
 * @author ：Xiaochen
 * @date ：Created in 2022/10/31 9:46
 * @description：
 * @modified By：
 * @version:
 */
public class Test {
    public static void main(String[] args) {
        MyThread myThread = new MyThread("AAA");
        //myThread.setName("线程A")
        myThread.start();


        MyThread myThread2 = new MyThread("BBB");
        //myThread2.setName("线程B")
        myThread2.start();
        for (int i = 0; i < 10; i++) {
            System.out.println(Thread.currentThread().getName()+"================="+i);
        }
    }
}